import { useAxios } from '@/hooks/web/useAxios'
const request = useAxios()
import { useCache } from '@/hooks/web/useCache'
const { wsCache } = useCache()

// 打标列表
export const zcMarkOrderListApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcMarkOrderList',
      data: data
    }
  })
}

// 打标添加
export const zcMarkOrderAddAdminApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcMarkOrderAddAdmin',
      data: data
    }
  })
}

// 打标修改
export const zcMarkOrderEditApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcMarkOrderEdit',
      data: data
    }
  })
}

// 打标查看
export const zcMarkOrderSeeApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcMarkOrderSee',
      data: data
    }
  })
}

// 打标删除
export const zcMarkOrderDelApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcMarkOrderDel',
      data: data
    }
  })
}

// 打标审核
export const zcMarkOrderAdminExamineApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcMarkOrderAdminExamine',
      data: data
    }
  })
}

// 打标完成
export const zcMarkOrderMarkEndApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcMarkOrderMarkEnd',
      data: data
    }
  })
}

// 打标资产
export const zcMarkOrderDetailedListApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcMarkOrderDetailedList',
      data: data
    }
  })
}

// 资产新增
export const zcMarkOrderAssetAddAdminApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcMarkOrderAssetAddAdmin',
      data: data
    }
  })
}
